#include <iostream>
#include <string>
using namespace std;
#define DEBUG
string str="*12345678910";

int main()
{
    #ifdef DEBUG
        freopen("./in.txt", "r", stdin);
        freopen("./out.txt", "w", stdout);
    #endif

    int n;
    cin >> n;
    int cnt=n;
    if(n==10) n++;
    for(int i=1; i<=cnt; i++)
        {
            for(int i=1; i<=n; i++)
                printf("%c", str[i]);
            puts("");
        }
    return 0;
}